package com.doge.calcalbum.core.base

enum class LoadStatus {
    SUCCESS,
    IDLE,
    LOADING,
    FAILURE;

    val isLoading get() = this == LOADING
}

fun LoadStatus?.isRefreshing(): Boolean = this?.isLoading ?: false